﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;

namespace BaMusaSoft.RPS.RPSServices.Reports
{
    public class SchedulesCustomersReportFields
    {

        public string ScheduleId { get; set; }
        public int CustomerId { get; set; }
        public string CustomerName { get; set; }
        public int AmountDue { get; set; }
        public string Mobile { get; set; }
        public static DataTable CreateDataTable()
        {
            DataTable table = new DataTable("SchedulesCustomersReport");
            var properties = from property in typeof(SchedulesCustomersReportFields).GetProperties()
                             select property;
            foreach (var property in properties)
            {
                DataColumn column = new DataColumn(property.Name, property.PropertyType);
                table.Columns.Add(column);
            }
            return table;

        }
    }
}
